<template>
    <div>
        <van-radio-group v-model="checked" direction="horizontal">
            <van-radio name="1" value>单选框 1</van-radio>
            <van-radio name="2">单选框 2</van-radio>
        </van-radio-group>
      <div v-if="checked === '1'">内容一</div>
      <div v-else-if="checked === '2'">内容二</div>
    </div>
  </template>
  
  <script>
  export default {
    data() {
      return {
        checked: '1',
      };
    },
  };
  </script>
  